/**
 * 	write on 2005-10-26 12:46:52.
 */
package org.nanhill.xmlro.gsp.packet;


/**
 * @author alin
 * 
 */
public class NotifyPacket<E> extends AbstractPacket<E> {

	private String commond;

	public String getCommond() {
		return commond;
	}

	public void setCommond(String commond) {
		this.commond = commond;
	}

	public NotifyPacket() {
	}

	/**
	 * get start tag like:
	 * 
	 * <code><pre>
	 *      	&lt;ntf cmd=&quot;myCmd&quot; id=&quot;myCmd_id&quot;&gt;
	 * </pre></code>"
	 * 
	 * @see org.nanhill.xmlro.gsp.packet.GspPacket#appendBeginTag(StringBuilder)
	 * 
	 */
	public void appendBeginTag(StringBuilder builder) {
		builder.append("Ntf cmd=\"");
		builder.append(this.commond);
		builder.append("\" id=\"");
		builder.append(this.id);
		builder.append("\">");
	}

	/**
	 * get end tag like:
	 * 
	 * <code><pre>
	 *     	&lt;/ntf&gt;
	 * </pre></code>
	 * 
	 * @see org.nanhill.xmlro.gsp.packet.GspPacket#appendEndTag(StringBuilder)
	 * 
	 */
	public void appendEndTag(StringBuilder builder) {
		builder.append("</Ntf>");
	}

}
